//
//  UIColor+Util.m
//  BuxProject
//
//  Created by iOS的 on 2021/12/19.
//  Copyright © 2020 Moitnea. All rights reserved.
//

#import "UIColor+Util.h"

@implementation UIColor (Util)

+ (UIColor *)colorWithHex:(int)hexValue alpha:(CGFloat)alpha {
    return [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0
                           green:((float)((hexValue & 0xFF00) >> 8))/255.0
                            blue:((float)(hexValue & 0xFF))/255.0
                           alpha:alpha];
}

+ (UIColor *)colorWithHex:(int)hexValue {
    return [UIColor colorWithHex:hexValue alpha:1.0];
}

+ (UIColor *)backgroundColor
{
    return [UIColor colorWithHex:0x0D0D04 alpha:0.8];
}
+ (UIColor *)textField_whiteColor {
    return [UIColor colorWithHex:0xffffff alpha:0.7];
}
+ (UIColor *)text_blackColor {
    return [UIColor colorWithHex:0x333333];
}
+ (UIColor *)text_grayColor {
    return [UIColor colorWithHex:0x999999];
}

+ (UIColor *)line_DivisionColor
{
    return [UIColor colorWithHex:0xf8f8f8];
}

+ (UIColor *)text_lightGreyColor
{
    return [UIColor colorWithHex:0xBDBDBD];
}

+ (UIColor *)text_darkGreyColor
{
    return [UIColor colorWithHex:0xD2D2D2];
}

+ (UIColor *)button_redBackgroundColor
{
    return [UIColor colorWithHex:0xFB5752];
}
+ (UIColor *)button_orangeBackgroundColor
{
    return [UIColor colorWithHex:0xFF8C47];
}

+ (UIColor *)text_blueColor
{
    return [UIColor colorWithHex:0x1F00E1];
}
+ (UIColor *)text_roserRedColor
{
    return [UIColor colorWithHex:0xD968F4];
}

@end
